<template>
  <div>
    type类型
    <h-button>Default</h-button>
    <h-button type="primary">primary颜色</h-button>
    <h-button type="danger">danger颜色</h-button>
    <h-button type="red">不存在的颜色，校验</h-button>
    <br />
    size类型
    <h-button>Default</h-button>
    <h-button size="small">small大小</h-button>
    <h-button size="large">large大小</h-button>
    <h-button size="medium">不存在的大小规则，校验</h-button>
    <br />
    复合类型
    <h-button type="danger" size="large">复合类型</h-button>
    <hr />
    <div>
      <h2>点击事件</h2>
      <!-- <h-button @click.native="handler">点击事件</h-button> -->
      <h-button @click="handler">点击事件</h-button>
    </div>
  </div>
</template>

<script>
import HButton from "./components/Buttons/index.vue";
export default {
  components: {
    HButton,
  },
  methods: {
    handler(e) {
      console.log("我被点击了", e);
    },
  },
};
</script>

<style scoped lang="less">
</style>
